from fastapi import APIRouter

route = APIRouter()


@route.get("/users", tags=["用户模块"])
async def read_users():
    return [{"username": "Foo"}, {"username": "Bar"}]


@route.get("/user/me", tags=["用户模块"])
async def read_user():
    return {"username": "fakeuser"}


@route.get("/user/{username}", tags=["用户模块"])
async def read_user_name(username: str):
    return {"username": username}
